package com.oop.demo05;

public class Teacher extends Person{
    public Teacher(){
        super();

    }
     int salary=8000;
    public  void work(){

    }
    @Override
    public void talk() {
        System.out.println("老师：姓名-"+super.name+ " "+"职位-"+super.job+" "+"工资-"+this.salary);
    }
}
